maybe this help..
removing the spaces before and after text you can use trim() function
the trim() function only removes excessive whitespaces and not single spaces. Anyway, doing so would complicate it a bit more, and I may end up with more erratic output
e.g.
Houses View.com Website DOMAIN NAME For Sale NR!
becomes
HousesView.comWebsiteDOMAINNAMEForSaleNR!
Buyer Work.com Website DOMAIN NAME For Sale NR!
becomes
BuyerWork.comWebsiteDOMAINNAMEForSaleNR!
etc etc..
Thanks for the reply though. Assures me that there is someone who reads this thread.:>