function ContainsWholeWord(input, word)
return string.find(input, "%f[%a]" .. word .. "%f[%A]")
end
print(ContainsWholeWord("Info Playlist pause","Play") ~= nil)
print(ContainsWholeWord("Info Play List pause","Play") ~= nil)
ZnVuY3Rpb24gQ29udGFpbnNXaG9sZVdvcmQoaW5wdXQsIHdvcmQpCiAgICByZXR1cm4gc3RyaW5nLmZpbmQoaW5wdXQsICIlZlslYV0iIC4uIHdvcmQgLi4gIiVmWyVBXSIpCmVuZAoKcHJpbnQoQ29udGFpbnNXaG9sZVdvcmQoIkluZm8gUGxheWxpc3QgcGF1c2UiLCJQbGF5Iikgfj0gbmlsKQpwcmludChDb250YWluc1dob2xlV29yZCgiSW5mbyBQbGF5IExpc3QgcGF1c2UiLCJQbGF5Iikgfj0gbmlsKQogICAgCg==