add optional string prefix

`prefix` is an optional string argument. If provided it will prepend each message with the prefix.

e.g. `stdout('foo: ')('bar')` would write out `foo: bar`