domainString function edit