Oops, I was mistaken -- `delete` actually does return the modified string. This method would work if the `del` were in quotes, hence being a string instead of a variable reference.