return a copy of the string with the new letter replacing the old one ruby code example
Example: ruby replace certain character
# Ruby language
str_old = "first-name last-name"
str_old.sub("-", "_") # Replace first "-" with "_"
str_old.gsub("-", "_") # Replace all "-" with "_"