code: function softReplace(contentBlock, nativeString, localizedString) {
    var escapedString = ignoreExtraSpaces(
      ignoreEmptyAttrs(
        utils.escapeRegExpSpecialChars(
          nativeString
        )
      )
    );
    var regex = new RegExp('([>"\']\\s*)(' + escapedString + ')(\\s*[<"\'])', 'g');
    return contentBlock.replace(regex, '$1' + localizedString + '$3');
  }
docs: avoids unintentional localization of unrelated strings