returna character at the specified position.
returntrue iff if the specified index is after the end of the character stream
returna substring