public static function to($str, $upperCaseFirst = true)
    {
        $str = strtr(ucwords(strtr($str, ['_' => ' ', '.' => '_ ', '\\' => '_ '])), [' ' => '']);

        if ($upperCaseFirst === false) {
            $str = lcfirst($str);
        }

        return $str;
    }