Removing junk closing braces