code: public void setText(String value) {
          string = value;
          start = offset = 0;
          end = value.length();
      }
docs: Sets the source string to iterate over. The begin and end positions are
  set to the start and end of this string.
  
  @param value
  the new source string.