Remove trailing semicolons