def get_cleaned_personal_identifier(x):
    """
    Returns upper case cleaned personal identifiers (CURP, RFC, NSS)
    :param x:
    :return:
    """
    return str(x).strip().upper().replace('-', '').replace(' ', '')
