adding c++ string splitting