Threadlocal Set String Javascript Substring Syntax