code: private void rewriteProperty(JSONObject node, String key, JSONArray rewriteProperty) throws JSONException {
      if (node.get(cleanup(key)) instanceof String) {
        if (rewriteProperty.length() == 2) {
          if (rewriteProperty.get(0) instanceof String && rewriteProperty.get(1) instanceof String) {
            String pattern = rewriteProperty.getString(0);
            String replacement = rewriteProperty.getString(1);
  
            Pattern compiledPattern = Pattern.compile(pattern);
            Matcher matcher = compiledPattern.matcher(node.getString(cleanup(key)));
            node.put(cleanup(key), matcher.replaceAll(replacement));
          }
        }
      }
    }
docs: Applies a string rewrite to a property.
  @param node Node
  @param key the property name to rewrite
  @param rewriteProperty the property that defines the string rewrite
  @throws JSONException