src/Util/Str.php
public static function pascal($str, $force = false)
    {
        $words = ($force)
            ? explode(' ', self::mechanize($str, ' '))
            : preg_split('/[\W_]/', self::transliterate($str));
        
        $words = array_map('ucfirst', $words);
        return join('', $words);
    }
public static function pascal($str, $force = false)
    {
        $words = ($force)
            ? explode(' ', self::mechanize($str, ' '))
            : preg_split('/[\W_]/', self::transliterate($str));
        
        $words = array_map('ucfirst', $words);
        return join('', $words);
    }
public static function pascal ( $ str , $ force = false ) { $ words = ( $ force ) ? explode ( ' ' , self :: mechanize ( $ str , ' ' ) ) : preg_split ( '/[\W_]/' , self :: transliterate ( $ str ) ) ; $ words = array_map ( 'ucfirst' , $ words ) ; return join ( '' , $ words ) ; }
Convert to Pascal case

Forcing will remove any existing uppercase
Example: "Fetch HTML"
- Without force: "FetchHTML"
- With force: "FetchHtml"

@param string $str
@param bool $force
@return string
Convert to Pascal case