public static function isSuffixed(string $data, string $suffix, string $separator = ''): bool
    {
        if ($separator !== '') {
            $data = trim($data, $separator);
        }
        return static::substr($data, -static::length($suffix)) === $suffix;
    }