def correct_title(title):
    """
    Return properly formatted job title.
    """
    # Make sure title is a string
    title = str(title)
    if "grad student" in title.lower():
        return "Grad student"
    # We will group all professors together
    if "professor" in title.lower():
        return "Professor"
    else:
        return "Research staff"