Remove trailing spaces, fix small capitalization issues.