added support for rtl text