Typescript Variable Within Stringstream Java