joined output into string for spark