Removing whitespaces at EOL and EOF.