return value to array of arrray from string
modified
enrich the function of methods