Possivelmente assim:
//--remover todos os /n
local result = string.gsub(s, "n", " ") -- remove line breaks
//--Depois procurasprocurar aas palavrapalavras
str = "This is some text containing the word tiger."
if string.match(str, "tiger") then
print ("The word tiger was found.")
else
print ("The word tiger was not found.")
end