Removing useless whitespaces at EOL and EOF.