1) wrap text and pattern in methods isMatchedNullSafe() and isEntireMatchedNullSafe() 2) fixed a bug in wrapupMarkup()