remove trailing whitespace and fixes #144