src/Strings/Strings.php
public function replace($search, $replace, &$count = null)
    {
        $this->string = str_replace($search, $replace, $this->string, $count);

        return $this;
    }
public function replace($search, $replace, &$count = null)
    {
        $this->string = str_replace($search, $replace, $this->string, $count);

        return $this;
    }
public function replace ( $ search , $ replace , & $ count = null ) { $ this -> string = str_replace ( $ search , $ replace , $ this -> string , $ count ) ; return $ this ; }
Replace text in string.

@param  string|array $search
@param  string|array $replace
@param  int          $count
@return self
Replace text in string .