Removed '\n' at the end of the records