It's the new line character, if you go to each of the lines that are causing the error and delete the 'invisible' last character then the errors will resolve
Go to end of the line that is causing the error and hit backspace once, for each of the lines that have the illegal character error.