Typescript Replace Characters In String C