made item search case insensitive
added function to get typeID of first item matching a given string.