while (s.length() && isspace(s[0])) s.erase(0,1);
size_t i=s.find_first_not_of(chardata.whitespace); if(i&&i!=string::npos) s.erase(0,i);
static void skipspace(string &s) {	while (s.length() && isspace(s[0]))		s.erase(0,1);}