Question from the Ruby test

How to change the value of a string in Ruby