Introduce - (BOOL)containsTextWithAttributes:inRange: and - (BOOL)fullyContainsTextWithAttributes:inRange: