I would say "I think that next time, I can do better than I did before."
Conversationally, you could say "I think next time, I can do better than before." In written, non-conversational English, the first is better.
When you are writing, the difference between conversation and regular text is how it sounds, not how it is read. If it sounds like conversation, it should be in quotation marks. I hope this helps.