Function sanitizeSeed