removes unecessary parts of filenames