There was the potential for an IndexError here, with a string that started with a zero-width joiner and had at least one more character afterwards.