toPascalCase
This method converts the string to PascalCase format, where each word is capitalized with no spaces.
Usage
$string = 'example string case';
$string = SM::toPascalCase($string);
// or
$string = SM::make($string)
->toPascalCase();
echo $string; // ExampleStringCase