def _process_string_exps(str_list):
    """
    common.hosts._process_string_exps accepts pre-parsed string data
    from the common.expressions library and pulls address, tcp port, and type
    information from the list of lists based on position.
    """
    if len(str_list) == 1:
        htype = None
    else:
        htype = str_list[1][0]
    if len(str_list[0]) == 1:
        return {'address': str_list[0][0], 'port': None, 'type': htype}
    elif len(str_list[0]) > 1:
        return {'address': str_list[0][0], 'port': str_list[0][1], 'type':
            htype}
