def despace(line):
    """ 
    Removes single spaces from column names in string.
    e.g., "CONTAINER ID   NAME" -> "CONTAINERID    NAME"    
    This is done so that pandas can read space-delimited files without 
    separating headers with names containing spaces.
    """
    parts = line.split(' ')
    parts = [p if p else ' ' for p in parts]
    return ''.join(parts)