str2replication
static int str2replication(const char *str);
res->replication = str != NULL ? str2replication(str) : -1;