Fix incorrect whitespace removal.

fixes #231