Remove trailing spaces

Trailing spaces are prohibited in most code styles.

I remove it by script `find . -type f -exec sed -i 's/ *$//' '{}' ';'` and then check changes.