Split string to matrix

Split string to matrix