Ruby chomp method