src/Sanitizer.php
public static function name($string = null)
    {
        if (!$string) return null;

        // Convert to lowercase, set UTF-8 character encoding, trim and return CamelCased string
        return trim(ucwords(mb_strtolower(trim($string), "UTF-8")));
    }
public static function name($string = null)
    {
        if (!$string) return null;

        // Convert to lowercase, set UTF-8 character encoding, trim and return CamelCased string
        return trim(ucwords(mb_strtolower(trim($string), "UTF-8")));
    }
Returns CamelCased string.

@param null|string $string User's input string.
@return null|string