Thank you so much Robert Klemme I knew it was possible that works great. 
I actually did it with:

myfield = %w[gabriel y martha iba gtz ibanez nat]
myfield.each { |word| if word.length==3 ;word.gsub!(word,"gutierrez") 
end }
puts myfield.join " "


but I was not happy

gabe

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