replaceAll() does not exist in JavaScript. Use this approach instead:
posNumbChange = posNumbString.replace(/-/g, 'i');
replaceAll() does not exist in JavaScript. Use this approach instead:
posNumbChange = posNumbString.replace(/-/g, 'i');