import re


def preprocess_ents(label, text):
    """
    Preprocess an entity

    Parameters
    ----------
    label: str:
        The named entity label
    text: str:
        The name entity text

    Returns
    -------
    tuple: returns a tuple of strings containing the label and text 
    """

    pattern = ':'
    match = re.search(pattern, text)
    if match:
        text = text[match.end():]
    text = re.sub('^\s+', '', text)
    text = re.sub('[^A-Za-z0-9._,@]+', ' ', text) # remove non-alphanumeric characters
    
    return label, text