[Issue #22] NSTextStorage optimization, fixed a string comparaison.