def is_good_candidate(input_string, guess_word):
    """
    input_string: string, the user input to be spellchecked
    guess_word: string, the word from the wordlist to be checked for candidacy
    returns: bool, True if the guess is of good length and the beginnings and
    endings of both of the strings match up correctly
    """
    return len(guess_word) >= 5 and input_string[0] == guess_word[0] and input_string[-1] == guess_word[-1]