docs: public static String replace(String s, String replace, String with) {
  
          if (s == null || replace == null) {
              return s;
          }
  
          if (with == null) {
              with = "";
          }
  
          StringBuffer b          = new StringBuffer();
          int          start      = 0;
          int          lenreplace = replace.length();
  
          while (true) {
              int i = s.indexOf(replace, start);
  
              if (i == -1) {
                  b.append(s.substring(start));
  
                  break;
              }
  
              b.append(s.substring(start, i));
              b.append(with);
  
              start = i + lenreplace;
          }
  
          return b.toString();
      }