I guess what I am saying is that I really don't care if it is an integer or a string as long as it passes the data to the output file. What I am wondering is, whether there is a rule or something that does not allow a mixture of string values and integer values to exist in the same array. I appreciate the code you gave me and I am getting ready to try it, but I am just wondering why the script did not work without this extra code.

Also, I don't always put quotes around my variables, not sure why I did here. I will take them off and see what happens. - I'm assuming you are talking about when I declare them.