Update: I'm now going to correct myself. I misread the original code thinking that the loop variable was being used to select the strings that were being replaced. However, the loopvariable is being used to select the strings that are being modified.
Yes! These are different. and I'll expand further, but wanted to get this correction out quickly.