Remove duplicate txt and fix missing space