Board Thread:Support Requests - Getting Technical/@comment-34975743-20180402042634

The page in question can be found here and the template can be found here. This isn't the only page (so far) where something like the following happens, but it is the only page (again, so far) where it's undesirable.

Essentially, I have if statements running to check if a given character appears in "Love Charm I," "Love Charm II," or "Love Charm III" and to assign categories based on that. The if statement I currently have for that purpose, however, is assigning all three categories, despite only "Love Charm I" and "Love Charm III" being entered in the appearance fields. I believe this is most likely because both "I" and "II" are technically in the string "Love Charm III." While this is not a problem for this character- he does appear in all three Love Charms- there are other characters that have exclusive appearances to each Love Charm.

So, my question is, how can I write an if statement that ONLY assigns categories if the strings are an exact match, not just if the string happens to share the same characters? (PS for this specific purpose I can't just write "Love Charm 1/2/3" instead, that'd be inaccurate to the actual titles) 