Added peekChar function.