Strip trailing whitespace.

Closes #33.