Reformatting curly brackets