For me personally, when I stopped a habit, I automatically replaced them with another habit. It's often a vicious circle. Once you stop a habit, you get tempted to replace it with another. Firstly, you have to really want to stop this bad habit. You could keep a calendar and mark every day that you didn't do this bad habit. You could also reward yourself. For example, if you didn't do this bad habit for a week, give yourself a little gift. You can also write down the reasons why you want to stop this bad habit and look at them when you feel tempted to do this bad habit again. If you're determined, then you can break that habit. It's difficult, but it's not impossible. It depends what sort of bad habit it is. Some are easier to deal with than others are. I hope you'll be able to break those bad habits. Good luck.