Threadlocal Set String Javascript Substring Find