Add `String` slicing

It's not a good idea to alter the parameters. Define a new variable for that purpose.