code: public SubText subText(int start, int end) {
          return new SubText(start, end<0 ? text.length()+1+end : end);
      }
docs: Returns a subtext.
  
  @param end
  If negative, -N means "trim the last N-1 chars". That is, (s,-1) is the same as (s,length)