Ahh, good point, originally had it as a char array, hence the [] left over from that, forgot to delete them when I decided to use string instead. =)

Changed the x < i though, had it originally and through troubleshooting trial and error ended up with x<=i, haha. Based on this thread, it seems most of my errors come from randomly trying to troubleshoot stuff, haha. I guess that's just a side effect of working on windows PCs for a living.

Thanks for all the help guys!