public function toTitleCase()
    {
        $str = \mb_convert_case($this->str, \MB_CASE_TITLE, $this->encoding);

        return static::create($str, $this->encoding);
    }
public function toTitleCase()
    {
        $str = \mb_convert_case($this->str, \MB_CASE_TITLE, $this->encoding);

        return static::create($str, $this->encoding);
    }
public function toTitleCase ( ) { $ str = \ mb_convert_case ( $ this -> str , \ MB_CASE_TITLE , $ this -> encoding ) ; return static :: create ( $ str , $ this -> encoding ) ; }
Converts the first character of each word in the string to uppercase.

@return static Object with all characters of $str being title-cased
Converts the first character of each word in the string to uppercase .