Thanks!

Jun 30, 2015 at 6:12 PM
Edited Jun 30, 2015 at 6:12 PM
Thanks! This was exactly what I needed with some minor tweaking to handle spaces better.

Line 101:
String word = GetWord();
Changed to:
String word = GetWord().Trim();
Lines 166:
String firstPart = text.Substring(0, posStart) + newTag;
Changed to:
String firstPart = text.Substring(0, posStart) + ((posStart == 0) ? "" : " ") + newTag;