analyze file name and remove extension of file in index