Add the Zero width space () to the string and it will wrap.
Here is a Javacript example:
let longWordWithOutSpace = 'pneumonoultramicroscopicsilicovolcanoconiosis';
// add between every character to make it wrap
longWordWithOutSpace.split('').join('');