added readString(inputStream) method