public static function stripSuffix(string $data, string $prefix, string $separator = ''): string
    {
        if ($data === '') {
            return $data;
        }
        if ($separator !== '') {
            $data = rtrim($data, $separator);
        }
        if (static::substr($data, -static::length($prefix)) === $prefix) {
            $data = static::substr($data, 0, -static::length($prefix));
        }
        if ($separator !== '') {
            $data = rtrim($data, $separator);
        }
        return $data;
    }