changed the getChar() method to actually return a character instead of the ascii value