made hasTextModifiers faster