His script works without replacing space with anything, although personally I would $strip first..