remove unnecessary whitespace