Support output result to a string slice.
Merge pull request #3 from lowstz/dev

Support output result to a string slice.