remove (chomp) a newline,'test string \n\n'.rstrip('\n')