added support for output stream(cout<<) for compute::string

Please review.
You should probably take `outStr` by const-reference here.