- std::getline(ss, token, i < 7 ? '/' : ' ');
- std::transform(token.begin(), token.end(), token.begin(), toggle_case);
- f.insert(0, token + (i ? "/" : " "));
+ std::getline(ss, token, rank > RANK_1 ? '/' : ' ');
+ f.insert(0, token + (f.empty() ? " " : "/"));