Typescript Variable Inside Regexp Replace