Mock stream from string