Be explicit: charAt returns the empty string

Be explicit: charAt returns the empty string when out of range.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charAt