I'm trying to use the squish method to reduce multiple white spaces in a string to single white spaces. However, I have a string with mutliple spaces which are not reduced. When I check for string[space_position].blank?
it returns true, but its neither empty, nor does is it == ' '
.
What could cause this behavior?
Not sure if this is relevant, but the string comes from a mongoDB and was saved there by Locomotive CMS.