Validate strings