If Variable Contains String Javascript Methods In Selenium Webdriver