Help with string manipulation

Hey so I have been doing some research on string manipulation because I’ve been stuck on a problem for a while now but I still don’t get it, what my ideal problem is I want to remove the numbers, brackets, and ONLY one space from this string

local String = "[1] Reveal This"
local String2 = [2] Reveal This Is"

So these examples above, I want the string manipulation to be compatible with say both String & String2 in this instance, so again I’m having trouble finding out how to remove the brackets, number, and ONLY the space which is between the actual string and the bracket, anything can help thanks for your time!

local str = "[1] Reveal This"
local newStr = str:gsub("%[%d+%]%s", "")
print(newStr)
1 Like

Thank you !! Works like a charm