better jsdoc in cache.ts
wrapWhitespace handles multi-character whitespace