String#[] should reject nil index