extracting file name check