static bool isCharEnter( String str, int index ){ String chr = ClipMath.charAt( str, index ); return ((chr == '\r') || (chr == '\n')); }