use strings.LastIndex in fileBaseName method