Soft-wrapping long string without spaces

This is a test of a function to insert a soft wrap in long strings which would otherwise fail to wrap and potentially cause layout/display problems.

The softWrap function is called when each button is clicked, using a default value of 12 character columns

MMMMMMMMMMMM

output here

raw output