def get_whois_key(text):
    """Method that parses a line of text extracting a key value that appears just before a ':'"""
    is_key = ""
    if text[-1] == ":":
        # Check if the last character in text is a ':'
        # if so, this matches the format of a key value
        is_key = text[:-1]
    else:
        is_key = None
    return is_key