taking string out of nested array