Bugfix 227 strip whitespace

Resolves #227