How to remove square brackets in string using regex? How to remove square brackets in a Javascript array?