Added conversion routine from str to ip, with cidr