Sanitize the input