Improved item parsing methods, and moved it to ItemUtil.