Refactor and reduce code duplication for non-split dwarf strings.