gsub (or gsub!) replaces a substring (first argument) with a replacement string (second argument)
puts "That's alll folks".gsub "alll", "all"