def check_string(string, pos, sep, word):
    """Checks index 'pos' of 'string' seperated by 'sep' for substring 'word'
    If present, removes 'word' and returns amended string
    """

    if sep in string:
        temp_string = string.split(sep)
        if temp_string[pos] == word:
            temp_string.pop(pos)
        string = sep.join(temp_string)

    return string