prepare for group option, replace spaces with tab