The tooltest changes look okay. It'd be nice to have a couple additional test cases where there's no whitespace between the junk text and the valid text.
And I suppose you could add a test case with a multiline string if you like. (This would be for protection in case of a bug somewhere else in the system.) cheers, mike