I figured it out. The scanner is reading multiple lines of the file at once. I thought that there was one line, but it just appears that way in the txt file. It's actually three lines sitting next to each other.
EDIT: False alarm, after deleting the other lines, it is still incorrectly reading the remaining line
EDIT 2: Or at least the print of the list is not correct