Simplified the C++ API even more, +passing const ref to string instead of string copy