properly, out-of-range string indexing returns `undefined` rather than `null`