How to compare 2 strings

Look at the image that I have attached above, in particulat on bottom left you can see a box where transcriptions are reported. I need to compare Irene’s transcription with Operatore’s one