Strip unnecessary whitespace