Reduce code duplication for set.string() and .backend().

.gitlab-ci.yml not found in this commit