Trim line breaks at end of file before parsing