Added support for right-to-left for Arabic and Hebrew in search-and-replace text