for (j = 0; j < childCount; j++) {
child = childs.item(j);
if(child.getNodeType() == Node.TEXT_NODE) {
if((child.getNodeValue().replaceAll(" ", "").length() > 1)) {
value = childs.item(j).getNodeValue();
value = arabicshaper.shape(value);
value = invertArabic(value);
/*reversed = "";
for(m = value.length()-1; m >= 0; m--) {
reversed += value.charAt(m);
}*/