Finishes file iterator and content replacer