Turning the stdout string into an array for matching