added ToStream to string method as an extension