public function convertCamelCase($string, $separator = '-'): string
    {
        $string = (string)$string;
        $separator = (string)$separator;

        return strtolower(
            preg_replace(
                '/([a-zA-Z])(?=[A-Z])/',
                '$1' . $separator,
                $string
            )
        );
    }