set the trimFilename method as a protected