@staticmethod
def str_handler(data):
    """Handle string input of one or more IP addresses and returns the
        distinct IPs with their associated frequency count.

        Args:
            data (str): raw input data from user

        Return:
            data_dict (dict): dictionary of distinct IP addresses to resolve.
        """
    if isinstance(data, str) and ',' in data:
        raw_data = data.strip().split(',')
    elif isinstance(data, str):
        raw_data = [data.strip()]
    else:
        raise TypeError('Unsupported input provided.')
    data_dict = {}
    for x in raw_data:
        if x not in data_dict:
            data_dict[x] = 0
        data_dict[x] += 1
    return data_dict
