Typescript String Replace Is Not A Function