Fix ending whitespace in ResFileReader.getRestOfLine()