remove square brackets