Added sanitize-string function.