- while ((pos = remaining.find_first_of (':')) != string::npos) {
- result.push_back (remaining.substr (0, pos));
+ while ((pos = remaining.find_first_of (splitchar)) != string::npos) {
+ if (pos != 0) {
+ result.push_back (remaining.substr (0, pos));
+ }