You can replace that section with the code below. It splits the IP address on the space and joins it with nothing so it basically removes the spaces from the IP address. I see nothing strange with the code so I'm not sure why it stops there. Can you display the @IPADDRESS0 marco just before trying to use it so you know if it actually contains any data?

 Code:
$IPAddress = Split(@IPADDRESS0, " ")
$IPAddress = Join($IPAddress, "")
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.