Strips out unnecessary IPs from given range (can be copied directly from subnet list)