Typescript Replace String On Echo