BHV-3181: Remove string conversion of array as regex handles this.

update detectTextDirectionality function to detect rtl mode only when content exists

Enyo-DCO-1.1-Signed-off-by: SoonGil Choi <soongil.choi@lge.com>