```\nfunction toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {\n    if (bytes(value).length < 32) {\n        return toShortString(value);\n    } else {\n        StorageSlot.getStringSlot(store).value = value;\n        return ShortString.wrap(_FALLBACK_SENTINEL);\n    }\n}\n```\n