Removing commas and semicolons from comparisons