remove newlines from ips