Fixed the reading of a trailing newline in a file

Fixes #67 
Sorry, I meant more, why did we want to replace the whitespace, it shouldn't make a difference right?