here some thing like this..

code:
$string = "1,234,567"
$newstring = ""

for each $thing in split($string,",")
$newstring = $newstring+$thing
next
? $newstring