Fix rec_name search when domain value is a string

review1125003