public function removeSpace(): Utility
    {
        $string = preg_replace('~[[:cntrl:][:space:]]~', '', trim($this->string));

        return new static($string, $this->encoding);
    }
public function removeSpace(): Utility
    {
        $string = preg_replace('~[[:cntrl:][:space:]]~', '', trim($this->string));

        return new static($string, $this->encoding);
    }
public function removeSpace ( ) : Utility { $ string = preg_replace ( '~[[:cntrl:][:space:]]~' , '' , trim ( $ this -> string ) ) ; return new static ( $ string , $ this -> encoding ) ; }
Remove all spaces and white space from the string

@return $this
Remove all spaces and white space from the string