modify RE in function "getElementText()"