public function removeRepeating(string $repeatingValue = ' '): Utility
    {
        $string = preg_replace('{(' . preg_quote($repeatingValue) . ')\1+}', $repeatingValue, $this->string);

        return new static($string, $this->encoding);
    }
public function removeRepeating(string $repeatingValue = ' '): Utility
    {
        $string = preg_replace('{(' . preg_quote($repeatingValue) . ')\1+}', $repeatingValue, $this->string);

        return new static($string, $this->encoding);
    }
public function removeRepeating ( string $ repeatingValue = ' ' ) : Utility { $ string = preg_replace ( '{(' . preg_quote ( $ repeatingValue ) . ')\1+}' , $ repeatingValue , $ this -> string ) ; return new static ( $ string , $ this -> encoding ) ; }
Remove repeating characters from the value

@param string $repeatingValue Value to remove

@return $this
Remove repeating characters from the value