check string has substring javascript