np.char.join(" ", x) x 'java' 'j a v a' Space between characters w3resource.com