Generating all subsets from a string

A simple string copy method