Even though old IE is not supported, it's probably better to use `charAt()` rather than the array index annotation --- and maybe just cache the value so that it doesn't need to be fetched multiple times.