Create API for getting materials from string values