Txt template cleanup.