are you sure there really removed?
Maybe your just using /ECHO whcih does remove multiple spaces when it outputs, but $left or $right wont
//var -s %a = $left($replace(..........x..........,.,$chr(32)),15) | echo -a ' %a ' size is $len(%a)
' x ' size is 15
see all the spaces in the VAR -s are shown!