Text or numbers of materials

How can i do matterial with numbers and texts from text value?