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.

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