Hello. I'm new to scripting and need help with a modest script I made below, please. It's working, but it's not doing exactly what I want which is to trigger ONLY when the said text FULLY matches what is in .txt file.

For example, let's say I have the line "What is the color of an apple?" in a .txt file. I DON'T want the script to trigger on "color of an apple?" or "an apple?" or "apple?" etc, but ONLY if it matches EXACTLY (word for word, including spaces) the sentence "What is the color of an apple?" from the .txt file, with not a character more or less. In other words, I want it to trigger ONLY on a %100 match.

I've tried reading a lot, but it's too complicated for me. Here's what I have:

on *:TEXT:*:#:{
var %WhatWasSaid = $1-
if ($read(QA.txt,w,$+(*,%WhatWasSaid ,*)) != $null) {do something}
}