check filenames format