CIDR string replacement