Check string length in isHighlight