convert tab to space in array