docs: public String replace(CharSequence text)
      {
          if (text == null)
          {
              return null;
          }
          try
          {
              StringBuilder sb = new StringBuilder();
              replace(text, sb);
              return sb.toString();
          }
          catch (IOException ex)
          {
              throw new IllegalArgumentException();
          }
      }