There is no replace option directly. I usually use list functions and then I concatenate strings (list components).
You can use the strtolist function, where you separator is "$SERVER$", and then build your new string:
thanks a lot - this was very helpfull.
I still think - there should be a replacement function. Performance would be much better.