public function ireplace($from, $to)
    {
        if (\is_callable($to)) {
            $to = $to($from, $this->string);
        }

        $this->string = \str_ireplace($from, $to, $this->string);
        return $this;
    }