Created using HTML:
Text without a word break opportunity between a's and b's:
aaaaaaaaabbbbbbbbbbbb
Text with a word break opportunity between a's and b's:
aaaaaaaaa
bbbbbbbbbbbb
Created using JavaScript: