Adding input stream to string method.