cleaned readString method