Ignore word boundary exception characters when they are at either end of a word.
Also treat them as word boundaries when having at least two of them in a Qt word
.