Checking file names and contents