makelabel function

makelabel generates a label from text and values