Tweaked the is_rtl() function
Tweak RTL detection