That's really strange. Maybe there is some weird hidden character at the end of each line. Is this a file created in Win/DOS environment? Please, post the output of the following command (using CODE tags)
head -n1 myfile | od -c
this should tell us if there is something strange in the first line of the file.