protected function normalize(string $name): string
    {
        $whitespace = $this->getWhitespace();

        $name = trim($name);

        return preg_replace('/[' . preg_quote($whitespace) . ']+/', ' ', $name);
    }
protected function normalize(string $name): string
    {
        $whitespace = $this->getWhitespace();

        $name = trim($name);

        return preg_replace('/[' . preg_quote($whitespace) . ']+/', ' ', $name);
    }
protected function normalize ( string $ name ) : string { $ whitespace = $ this -> getWhitespace ( ) ; $ name = trim ( $ name ) ; return preg_replace ( '/[' . preg_quote ( $ whitespace ) . ']+/' , ' ' , $ name ) ; }
normalize the name

@param string $name
@return string
normalize the name