There seems to be an issue with trailing spaces. For example, this string will return true for hasCurseWords:
"I remember seeing this small salt water aquarium at a museum, filled with anemones, and it was like a living work of art. I probably spent hours staring at it. "
Removing the space at the end changes the result to false.
There seems to be an issue with trailing spaces. For example, this string will return true for
hasCurseWords:"I remember seeing this small salt water aquarium at a museum, filled with anemones, and it was like a living work of art. I probably spent hours staring at it. "Removing the space at the end changes the result to false.