ok, so maybe it's a corner case, but I'd put the `reNotBlank` test inside the `if (found)` condition instead.

ie, if the first text node has only blanks, I'd still want to change its content, I guess. I relate this with your last `if (!found)` case where if there are only blank text node, you'd still add the text before the first one, and the layout would still be f*** up, right ?

won't block on this, please do this if you think it's better