support vector<string> and vector<vector<string> >