Use Environment Variable In String Javascript Substring Indexof