replace spaces with tabs