Strip excess whitespace.