def cleanUpName(aName):

    bName = ''

    aName = aName.upper()

    ## ii = aName.find(" - Homo sapiens (human)")
    ii = aName.find(" - HOMO SAPIENS (HUMAN)")
    if (ii >= 0):
        aName = aName[:ii]
    aName = aName.strip()

    ii = aName.find("(")
    while (ii >= 0):
        jj = aName.find(")", ii)
        aName = aName[:ii] + aName[jj + 1:]
        ii = aName.find("(")
    aName = aName.strip()

    ii = aName.find("<")
    while (ii >= 0):
        jj = aName.find(">", ii)
        aName = aName[:ii] + aName[jj + 1:]
        ii = aName.find("<")
    aName = aName.strip()

    for ii in range(len(aName)):
        if (aName[ii] == ','):
            continue
        elif (aName[ii] == '('):
            bName += '_'
        elif (aName[ii] == ')'):
            bName += '_'
        elif (aName[ii] == '-'):
            bName += '_'
        elif (aName[ii] == '/'):
            bName += '_'
        elif (aName[ii] == ';'):
            bName += '_'
        elif (aName[ii] == '&'):
            continue
        elif (aName[ii] == '#'):
            continue
        elif (aName[ii] == ' '):
            bName += '_'
        else:
            bName += aName[ii].upper()

    ii = bName.find("__")
    while (ii >= 0):
        print "             ", ii, bName
        bName = bName[:ii] + bName[ii + 1:]
        print "             ", bName
        ii = bName.find("__")

    return (bName)