add methods needed by SWIG to fallback string class [thanks elen4]