def set_title(name):
    """Returns the Title in the name string."""
    titles = {
        "Capt.": "Prestige",
        "Col.": "Prestige",
        "Major.": "Prestige",
        "Jonkheer.": "Prestige",
        "Don.": "Prestige",
        "Dona.": "Prestige",
        'Countess.': 'Prestige',
        "Sir.": "Prestige",
        "Dr.": "Prestige",
        "Rev.": "Prestige",
        "the. Countess": "Prestige",
        "Mme.": "Mrs",
        "Mlle.": "Miss",
        "Ms.": "Mrs",
        "Mrs.": "Mrs",
        "Mr.": "Mr",
        "Miss.": "Miss",
        "Master.": "Prestige",
        "Lady.": "Prestige"
    }

    for key in titles:
        if key in name.split():
            return titles[key]