"remove newline in string ""Hello\n\n\n"" on the right side",'Hello\n\n\n'.rstrip('\n')