Fix the filename string issue for using -F option