Typescript Replace Characters In String