keep only whitespaces and semicolons