class String

def squish

" foo bar \n \t boo".squish # => "foo bar boo"
string }.squish # => "Multi-line string"
%{ Multi-line

Note that it handles both ASCII and Unicode whitespace like mongolian vowel separator (U+180E).

groups into one space each.
the string, and then changing remaining consecutive whitespace
Returns the string, first removing all whitespace on both ends of
def squish
  dup.squish!
end