replace all whitespace with a single space