From: Tom Cloyd [mailto:tomcloyd / comcast.net] # x.gsub!(y[0], y[1]) try, x=x.gsub(y[0], y[1]) kind regards -botp