Cleanup whitespace at EOL and EOF.