fix string reading.