Fix to remove target strings when adding new files from templates.