Substring In Javascript Using Selenium