I want to remove one ] from string


how to remove last bracket in nodered?

What does the original string look like? There may be a better way to handle the whole string rather than just solve this one last bit.

And also where did the original string come from as you may be able to get a different output. i.e an array