Add another way of deleting substring.