Sanitize inputs for parted module