It's all just a habit in the end. I think the only way to do this is to constantly have the change you want to make running throughout your head during the day. You'll eventually slip up and curse and then you'll catch yourself. Its amazing how many times you do something when it becomes habit that you don't realize until you start to pay attention for it.

Sorta like when you or someone you know buys a car, then all of a sudden you're seeing that car everywhere.