Typescript Insert Character Into String Inverter