javascript check if string contains multiple characters