public function trimSelectValues(?string $value): string 	{ 		// https://stackoverflow.com/questions/3469080/match-whitespace-but-not-newlines 		$value = preg_replace('/(?:(?![
\r])\s)+/', ' ', $value ?? ''); 		$value = explode("
", $value ?? '');  		foreach ($value as &$val) { 			$val = trim($val); 		}  		return implode("
", array_filter($value)); 	}