feat(dccd): Make toString() code more robust