Remove trailing whitespace.

Removed trailing whitespace in code examples for checkstyle compliance.