Alright, so I need to fix up the class a wee bit as what you have...
as for the second part..yea, the truncating stuff works with the array index as 0. I think I threw the truncate function in the sample somewhere. I'll add in the error checking as well, I didn't even think of that. Thanks =D