public function replace($string)
    {
        $nestLevel = 1;
        do {
            $originalString = $string;
            $nestLevel++;
            $string = $this->_substitutor->replace($string);
        } while (($originalString != $string) && ($nestLevel <= $this->_maxNestLevel));
        return $string;
    }