def getFinal(endstr):
    """ returns the final consonant or empty string """
    if not endstr:
        return ''
    if endstr.endswith('ng'):
        return 'ng'
    lastchar = endstr[-1]
    if lastchar in ['m', 'b', 'n', 'x', 'r', 'l', 't', 'x']:
        return lastchar
    return ''
