string& rtrim_once(string &str, const char *key) { rtrim_once(str(), key); return str; }
char* trim_once(char *str, const char *key) { return ltrim_once(rtrim_once(str, key), key); }