Strip trailing spaces.

Got tired of reading around line 500.