public function from(Contract $contract, string $string, callable $callback = null): string
    {
        return $this->callback(
            trim($contract->recipe($string, 'space')),
            $callback
        );
    }
public function from(Contract $contract, string $string, callable $callback = null): string
    {
        return $this->callback(
            trim($contract->recipe($string, 'space')),
            $callback
        );
    }
public function from ( Contract $ contract , string $ string , callable $ callback = null ) : string { return $ this -> callback ( trim ( $ contract -> recipe ( $ string , 'space' ) ) , $ callback ) ; }
Convert to space format.
Call optional function on callback.

@param  \SSD\StringConverter\Types\Contract $contract
@param  string $string
@param  callable|null $callback
@return string
Convert to space format . Call optional function on callback .