cut unnecessary whitespace