Remove redundant semicolons and wildcards