def sqlName( nameStr ):
    """Make a proper token out of a string with embedded spaces and special characters

    ' ' -> '_'
    '#' -> 'Num'
    
    """
    ss = nameStr.replace(" ","_")
    ss = ss.replace("#","Num")
    return ss