public static function spaceless(string $string): string
	{
		$string = self::trim($string);
		$string = self::replace($string, '#\s{2,}#', ' ');
		return $string;
	}
public static function spaceless(string $string): string
	{
		$string = self::trim($string);
		$string = self::replace($string, '#\s{2,}#', ' ');
		return $string;
	}
public static function spaceless ( string $ string ) : string { $ string = self :: trim ( $ string ) ; $ string = self :: replace ( $ string , '#\s{2,}#' , ' ' ) ; return $ string ; }
Remove white characters from the beginning and end of a string
and convert multiple spaces between characters to one space
Remove white characters from the beginning and end of a string and convert multiple spaces between characters to one space