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