check string contains substring in javascript