Is there a way to check if some string is a valid file name without bunch of if's or select case statements?

------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.