make string format for device id expect string