Pretty sure the logic is the same, Sam. ? I'm replacing the nth delimiter with a specified replacement. You're doing the same thing but with two loops and additional variables.