On top of the option Starbucks gave, I use the following:
Code:
$replace($didtok($dname,$did,10),$chr(10),$null)

well, you would need to replace the $did with your actual did if applicable, as well as $dname, found it from somewhere on the forums, but forget who said it.