Remove extra slashes and semicolons