Issue28 second try

This is  replacement for pull request #31 
Just adding EOF normalization to `trimWhiteSpace` instead of introducing a new option