file name validator and test