public function split($separator)
    {
        $hash = new Hash(explode((string) $separator, (string) $this));

        return $hash->map(
            function ($value) {
                return new String($value);
            }
        );
    }
public function split($separator)
    {
        $hash = new Hash(explode((string) $separator, (string) $this));

        return $hash->map(
            function ($value) {
                return new String($value);
            }
        );
    }
public function split ( $ separator ) { $ hash = new Hash ( explode ( ( string ) $ separator , ( string ) $ this ) ) ; return $ hash -> map ( function ( $ value ) { return new String ( $ value ) ; } ) ; }
Splits the string
@param string separator
@return Hash[String]
Splits the string