delet the ^M in end of line