strip excess whitespace