Thanks it worked:

str="Hello\n"
str2="World"

puts str+str2

str1=str.chomp

puts str1+str2

-- 
Posted via http://www.ruby-forum.com/.