Replace String At Index Typescript