Erm, have you tried perl's tr///?
$_ = "a b c"; tr/ / /s; print; [download]
In reply to Re: manipulation of ps command output by Fletch in thread manipulation of ps command output by wube