hey guys..

i'm trying to remove spaces in a text and replace a character at the same time But, when i test it out the charcter i replace gets duplicated..

example:
//echo -a $replace($remove(hello $chr(124) mom,|),$chr(32),$chr(47))

results in this: hello//mom

what i wanna do is to remove the spaces and replace the pipe whith / which is $chr(47) i believe.. But, i only want one instance of the forward slash character...

can someone explain why thats happening and how to do it proper please if i'm not doing it correctly?

thanks in advance..