Simplified filename check