def extract_status(status: str) -> str:
    """Given long status string extract only keyword of interest: expired, valid, withdrawn."""
    # Always last word in the string then remove trailing dot
    return status.split(' ')[-1].strip('.')