Strings In Depth13 / 19
Up next

sub

# sub touches just the first occurrence
puts "na na na".sub("na", "hey")
What you're solving

replace only the first match