Now I have a dataframe. I want to replace the value in column C, when column A and B both find matches. The replace rule is determined by the order in the strings in a list