Hello.
It’ clear what you wish to achieve. You can use replace Javascript method to work with strings in Corvid.
Should you need further assistance, follow the guidelines here to ensure that other members understand your inquiry: Guidelines for Posting to the Corvid Forum
Good luck!