string method for c++11