Adding sanitize function