Remove extra unmatched braces.