toDeviceId

Creates a device ID from a String.