Found the answer thanks to Panayot Karabakalov.
We tried using a Call
and doing it without parentheses:
Replace strContent, st, arr (k,i), 1
But nothing worked. The solution eventually was:
strContent = Replace (strContent, st, arr (k,i), 1)
Thank you everyone for the quick and helpful responses! You guys never let us down.