How about refactoring the 2 cases into separate methods? One for presentation, one for filename.