Optimization : implemnted removing brackets after builded tree