remove invalid txt