public String previewNextChar(){
  if (position < text.length()) {
    return text.substring(position,position + 1);
  }
 else   if (position == text.length()) {
    return text.substring(0,1);
  }
  return "";
}

public String previewNextChar ( ) { if ( position < text . length ( ) ) { return text . substring ( position , position + 1 ) ; } else if ( position == text . length ( ) ) { return text . substring ( 0 , 1 ) ; } return "" ; }
returns a " preview " of the next character in the world . used in some scripts .
