normalizes whitespace