Remove extraneous brackets