How to compare string values in two different rows

Hi, I am trying to compare 2 string values from two different rows and send an alert when the string values do not match.

Any idea how to do this ?

Thanks