Right now is only used for sorting since I created it for it, but it could have more uses. Lots of the other functions here actually deal with string too, but they know is a path or file name and treat them as one. Moving it to StringUtils or some other place like doesn't sound good.

Maybe it would be better to rename this one as `getFilenameName` or something like that, that only returns the file name without the extension to make it less specific.