strip trailing whitespace

Closes #2