Expose the string type as a part of the API.
Add c++ connect and close methods.