Remove semicolons/trailing whitespace