Ah, the example is bad... Offset 1 points to the first character in the input string (just as with SUBSTR), not the second one (as in C/C++).

So REPLACE("string with another string in it", "string", "STRING", 2) is the right example.

I'll fix this in the final version of the document.

Thanks for the report!

Ruud