Fixed the Result of file.replace