def is_abbrev(abbrev, text):
    abbrev = abbrev.lower()
text = text.lower()
words = text.split()
if not abbrev:
    return True
if abbrev and not text:
    return False
if abbrev[0] != text[0]:
    return False
else:
    pass
Check if a string is a possible abbrevation for a name