javascript check string contains special characters