Filter out extra whitespace