remove double trailing semicolons