Typescript Replace Part Of String Concatenation Java