"remove trailing newline in string ""test string\n""",'test string\n'.rstrip()