public function insert(string $string, int $position)
    {
        $this->data = substr_replace($this->data, $string, $position, 0);
    }
public function insert(string $string, int $position)
    {
        $this->data = substr_replace($this->data, $string, $position, 0);
    }
public function insert ( string $ string , int $ position ) { $ this -> data = substr_replace ( $ this -> data , $ string , $ position , 0 ) ; }
Inserts the string at the given position in the buffer.

@param string $string
@param int $position
Inserts the string at the given position in the buffer .