Well $chr(44) would not be a very good example to use but as you'd get: ,mIRC but..

$replace($chan,$(#,),$+($chr(32))) would be fine.
$replace($chan,$(#,),$+($chr(3))) would also be fine if characters after the '#' are not numeric.

-Andy