combine string in diag of matrix