Replace a string value by another string value that is not at the same index value

How can I replace a string value:“2” indexed at 22 by a string value:“3” indexed at 33? Is it possible to do this by using the replace inline node?
Thanks

Are you talking about strings or arrays?

Replace Inline doesn’t utilise indexes, just values. Not sure if I understood you right:

But this will replace the element at index 22 with the element at index 33. It does not care what the element value is.

I didn’t give enough information sorry, I am working with arrays. Here is a screenshot that might explain better what I want to achieve…