replace <file> to filename