Replace a substring
speaker = "King Richard, 2007" speaker[", 2007"]= "III" # => "III" p speaker # => "King Richard III"