file_name function

Extract file raw name and type from file names