remove newline in string 'windows eol\r\n' on the right side,'Windows EOL\r\n'.rstrip('\r\n')