Replaces space with tab and uses return value directly