remove index from file name