replace whitespace with single space instead of nothing