replace spaces with tab