check if string has substring javascript