Add function to retrieve string represenation for device type