finalize string reader