basename
basename (path[, sfx])
This function returns the base name of the file specified by path, removing any leading directory components and the suffix specified by sfx if present. If sfx is .*, then all characters following a trailing . are removed, including the period.