strip whitespaces from ips