Need help with an unusual String manipulation

yes, sure. It is Regex.Replace to use

[CheatSheet] - System.Text.RegularExpressions | RegEx - News / Tutorials - UiPath Community Forum