<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def nameStringGender(s, noExcept = False):
 """Expects `first, last`"""

    global mappingDict
    try:
        first = s.split(', ')[1].split(' ')[0].title()
    except IndexError:
        if noExcept:
            return 'Unknown'
        else:
            return GenderException("The given String: '{}' does not have a  last name, first name pair in with a ', ' seperation.".format(s))
    if mappingDict is None:
        mappingDict = getMapping()
    return mappingDict.get(first, 'Unknown')