Text insert cleanup.