stringifying key and value explicitly to determine object size