remove unwanted whitespace