* because the file name is not sensitive, we need first get the filename by
using the substring.