javascript test if string contains character