Sanitize a single string value with the given rules.
The raw string to sanitize
The sanitization rules to apply
The sanitized string
Sanitize a single string value with the given rules.