Windows editors produce files that have two characters that define the end of a line - so-called carriage control.
UNIX just uses one character, so files from DOS or Windows show an extra character ascii 13 or control-M == ^M
UNIX shell does not like the ^M character. Delete all of the ^M characters and things will be fine. You can do it with Aigles tr example or with dos2ux (sometimes called dos2unix).