fixed bug with brackets not being stripped