removes extra whitespace