Strip excess whitespace