add string cleaning for blank values and the total counter