memcmp to strcmp in sysfs