src/Traits/IsString.php
public function replace(string $find, string $replace): Stringable
    {
        return new static(str_replace($find, $replace, $this->string));
    }
public function replace(string $find, string $replace): Stringable
    {
        return new static(str_replace($find, $replace, $this->string));
    }
public function replace ( string $ find , string $ replace ) : Stringable { return new static ( str_replace ( $ find , $ replace , $ this -> string ) ) ; }
Find and replace text

@param string $find    Text to find.
@param string $replace Text to replace.
@return Stringable
Find and replace text