src/TextFormatter.php
protected function rebuildTitle($index, $word)
    {
        $this->title =
            mb_substr($this->title, 0, $index, $this->encoding) .
            $word .
            mb_substr(
                $this->title,
                $index + mb_strlen($word, $this->encoding),
                mb_strlen($this->title, $this->encoding),
                $this->encoding
            );
    }
protected function rebuildTitle($index, $word)
    {
        $this->title =
            mb_substr($this->title, 0, $index, $this->encoding) .
            $word .
            mb_substr(
                $this->title,
                $index + mb_strlen($word, $this->encoding),
                mb_strlen($this->title, $this->encoding),
                $this->encoding
            );
    }
protected function rebuildTitle ( $ index , $ word ) { $ this -> title = mb_substr ( $ this -> title , 0 , $ index , $ this -> encoding ) . $ word . mb_substr ( $ this -> title , $ index + mb_strlen ( $ word , $ this -> encoding ) , mb_strlen ( $ this -> title , $ this -> encoding ) , $ this -> encoding ) ; }
Replaces a formatted word within the current title

@param int $index
@param string $word
Replaces a formatted word within the current title