charAt() returns the character at a specified index (position) in a string.
Invalid index converts to default value 0: