replaceAll fix

added global modifer to replace so it replaces all to children and name