How to remove ^M from a text file and replace it with the next line,"somestring.replace('\\r', '')"