public function insert($index, $string)
    {
        // NOTE: This could be slightly confusing as the parameters
        // are back to front. I guess I could change the Str version...

        $this->str = $this->str->insert((string)$string, $index);

        return $this;
    }
public function insert($index, $string)
    {
        // NOTE: This could be slightly confusing as the parameters
        // are back to front. I guess I could change the Str version...

        $this->str = $this->str->insert((string)$string, $index);

        return $this;
    }
public function insert ( $ index , $ string ) { // NOTE: This could be slightly confusing as the parameters // are back to front. I guess I could change the Str version... $ this -> str = $ this -> str -> insert ( ( string ) $ string , $ index ) ; return $ this ; }
Inserts a string into this instance at the specified character position.

@param  int        $index  The index at which to insert the substring.

@param  string|Str $string The substring to insert.

@return static
Inserts a string into this instance at the specified character position .