Implement string input wrapper.
Make vector input take ownership of the data.