Found it, i needed to assign the change to the string variable itself:
oVar2 = replace(oVar2, "xxx", oVarSize)