tidy whitespace characters