Fix \r in end of the string from file