Why am I splitting lines when reading?