local my_string = "[I wish you a happy birthday]" local new_string = my_string:gsub('[][]', '') print(new_string)