def instjoin(*instnames):
    """Return hierarchical instance names from instance name components
    
    >>> instjoin('I1','VS')
    'I1.VS'
    >>> instjoin('','VS')
    'VS'
    
    """
    return '.'.join([part for part in instnames if len(part) > 0])