Remove trailing whitespace.

With a test.