public static function removeIndex(string $list, $index, string $separator): string
    {
        $items = self::explode($separator, $list);
        if (isset($items[$index])) {
            unset($items[$index]);
        }
        return implode($separator, $items);
    }