`key.gsub(....) and key.slice....` the `key.gsub` is a statement with no effects. It returns a string, it doesn't modify 'key'

what is the intent here?