def duplicate(s, index, check):
    """
    This function checks whether there are duplications in the word string

    :param s: (lst) list of the word string
    :param index: (int) the char to check whether there's a duplication
    :param check: (int) the char that is being checked
    :return: (boolean)
    """
    for i in range(index, check):
        if s[i] == s[check]:
            return True
    return False