Returning empty string for empty device name