public string Check() { string checker = ""; List <itemStack> items = new List <itemStack>(); items = inventory.getInventoryStacks(); //Debug.Log(items.Count); foreach (itemStack item in items) { if (item.item != null) { checker += item.item.ToString().Substring(7, 1); } } return(checker); //Debug.Log(checker + " result"); }