DSSSM-790 #time 15m Restructuring an invocation of String.prototype.replace() which introduced issues related to V8-based browser compatibility