Improvement for the name Filter
Use of os.path.splitext()