Create Condition that is dependant on the information, not index

Thank you for your suggestion, but I don’t want the ID (e.g., K01) to be changed to an index number because when I connect it to my string.replace node I get this warning (see picture). My goal is more to make the information of both lists dependant on each other, so that if dynamo reads e.g., architect in the naming it should automatically be replaced with the corresponding ID which would be K01.