Adding {} and replacing spaces with tabs