remove unwanted curly bracket