removes whitespace from the string