Shouldn't this be `specialsCounter = i` like the case above?  We might have incremented `i` several times before the chars matched, making specials[i] != specials[specialsCounter + 1]