new method that parses a string representing a range of IP addresses