fixing whitespace stripping