Remove unnecessary temp variable in nonEmptyFilename