How to match string values from two string vectors within a nested loop