string = "abcde" string.replace("e") #=> "e"
replace
a = 'old_string' b = a b.replace 'new_string' a # => "new_string"
a = 'old_string' b = a b = 'new_string' a # => "old_string"