This code doesn't check for input or source length & type. Do you want that?
I don't think so. As for looping, heck...that's just a figger o' speech, right? WRONG! Okay. I won't say that any more.

I'll make us a sample and you post it under yer name.