Typescript Remove Character From String Javascript