Creating method checkModel

Return a device model from socket string.