Force whitespace trimming to take effect by immediately updating TODO text .innerHTML which needed to be trimmed

The me of today apologises to the me of tomorrow for the RegExps