Tools: remove c++11 string method use.