import re


def getStrainID(inStr):
    """
    get strain ID
    should start with LL or AG
    then 3-4 digits
    """
    result = ''
    p = re.compile('((AG|LL)\d{3,4})')
    if type(inStr) is str:
        regexResult = p.findall(inStr)
        if len(regexResult) > 0:
            result = regexResult[0][0]            
    return result