In my game a function triggers if a player says a certain string. So if this certain string is "Apple" and the player says "apple" or even "ApPlE" the function will not trigger.
object = "Apple"
player.Chatted:connect(function(msg)
if msg == object then
--code
end
end)

2 comments
tyvm :)
Ninja'd me by this much