Sanitize inputs