how can i check with input if single string is the same as full string?

Lets focus on them going red. Can we see the script? There are some strange bits I don’t understand. This:
Screenshot_20230920_211156_Chrome

This changes as many times as there are elements in the array.


Perhaps explain in bullet points how it’s supposed to work.