Strip trailing space

Verified using `git diff --ignore-space-at-eol`.