Optimize filename