fix readstr