Typescript Replace First Character Of String Compression