how to remove characters from a string in lua
-- Define the original string
local originalString = "Hello, World!"
-- Define a pattern for the characters to remove
local pattern = "[, ]" -- This pattern matches commas and spaces
-- Use the gsub function to remove the matched characters
local modifiedString = originalString:gsub(pattern, "")
-- Print the modified string
print(modifiedString) -- Output: "HelloWorld!"