my $CPU = 'Intel(R) Xeon(R) CPU X5660 2.80GHz'; $CPU =~ s/\s+/ /g; print "<$CPU>\n"; # prints