I'm making a chat system which is fully functional and I'm currently adding new features to it so it can be better than average. For one of these ideas, I wanted to add an auto correct option. I've tried and tried, but the furthest I can get is literally just doing print(string.find(msg,word)). That returns the incorrectly spelled word, but I have no idea how to actually change it. I have a table that looks like this, which is how the words get corrected (if you can't figure out how it works, leave):
Correct = {{"lpl","lol"},{"lel","lol"}} -- Those are examples so you get the idea
Could somebody please point me in the right direction?

1 comment
Yes, I think the Direction You're looking for is that way -->