public static bool ContainsRtlText(this string data) { if (string.IsNullOrEmpty(data)) return false; return MatchArabicHebrew.IsMatch(data); }