while (list.indexOf('<Item>') != -1) {
const newStr = str.replace(new RegExp(`.*?<Item>(.*)`), '$1');
const result = newStr.replace(new RegExp(`</Item>.*`), '');
items.set(`Item${i}`, result);
i++;
}
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory