In the print loop, the "Records Processed" print statement needs to be completely cleared out with a blank string to remove residual characters.