code: public void replace( String param, String value ) {
          int [] range;
          while ( (range = findTemplate( param )) != null )
              buff.replace( range[0], range[1], value );
      }
docs: Substitute the specified text for the parameter