why do you call `trim()`? isn't it supposed to keep all the trailing whitespace on the files? - many people adds at least one [empty line at the end of the file](http://stackoverflow.com/questions/2287967/why-is-it-recommended-to-have-empty-line-in-the-end-of-file).