New method for parsing array strings