Typescript Extract Number From String Inverter