--- Marcus Andersson <marcus at bristav.se> wrote: > Isn't the result from exec an array? > > Try validDataType[0].toLowerCase() instead Yes it is, and that does work grabbing the [0] index. Tom ===== http://www.Pixelmech.com/ - read my latest blog posting! http://www.DMXzone.com/ - JavaScript Author http://SparklesParties.com - Princess parties for little girls! http://www.thywordistruth.net/ - Eternal Life "Well, my name's Dewey Oxburger. My friends call me Ox. I dont know if you've noticed, but I got a slight weight problem."