Check If String Contains Substring Javascript Method