Try something like this...
<?php $stripped = $record['title'] ?>
<?php $stripped = str_replace(' ', '', $stripped); ?>
<?php echo $stripped ?>
Hope that helps,
The first CMS Builder reference book is now available on-line!
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php