Alternative to the Replace function

This request is related to this issue:

I was able to handle it using CAST.

Thank you very much for the help.