code: public static String replace(String string, Map<String,String> ht)
      {
          return Utility.replace(new StringBuilder(string), ht).toString();
      }
docs: Replace every occurrence of the strings in the map with the new data.