Added charAt() method usage