Added readString function