def prepare_cell_align_type(in_cell_align):
    """
    Basic function that renames the cell alignment
    string from the ArcGIS Pro UI and makes it dea
    aws stac query compatible. 
    
    Parameters
    -------------
    in_cell_align : str
        The ArcGIS Pro UI string for stac cell alignment.
        Example: Top-left, Center.
    
    Returns
    ----------
    Processed cell alignment string name for use in dea
    aws compatible stac query. Example: topleft, center.
    """
    
    # checks
    if not isinstance(in_cell_align, str):
        raise TypeError('Cell alignment must be a string.')
    
    elif in_cell_align not in ['Top-left', 'Center']:
        raise ValueError('Cell alignment must be either Top-left or Center.')
        
    # prepare and return
    return in_cell_align.lower().replace('-', '')