code: public static Matrix fromString(String string, Object... parameters) {
  		string = string.replaceAll(StringUtil.BRACKETS, "");
  		String[] rows = string.split(StringUtil.SEMICOLONORNEWLINE);
  		String[] cols = rows[0].split(StringUtil.COLONORSPACES);
  		Object[][] values = new String[rows.length][cols.length];
  		for (int r = 0; r < rows.length; r++) {
  			cols = rows[r].split(StringUtil.COLONORSPACES);
  			for (int c = 0; c < cols.length; c++) {
  				values[r][c] = cols[c];
  			}
  		}
  		return Matrix.Factory.linkToArray(values);
  	}
docs: Creates a DefaultDenseStringMatrix2D from a given String. The string
  contains the rows of the matrix separated by semicolons or new lines. The
  columns of the matrix are separated by spaces or commas. All types of
  brackets are ignored.
  <p>
  Examples: "[1 2 3; 4 5 6]" or "(test1,test2);(test3,test4)"
  
  @param string
  the string to parse
  @return a StringMatrix with the desired values