By the power of the Holy Spirit, we are able to overcome addictions, and bad habits.... even swearing! Just like Capt Mac said, we are convicted by the Holy Spirit. You obviously know it is wrong to cuss and swear, we all do, and we are certainly not good witnesses to Jesus Christ if profanity is spewing out of our mouths. So ask God in prayer to take away that desire to swear and fill your mind with pleasing, good things and those filthy words will be come less and less pleasant in your mouth and will almost feel foreign to you. They will sound so ugly and horrible, you will become very aware of what you are saying, and you will cease saying them. It works, it worked for me and IF you slip up, which you may do, (me too) just readily confess it to the Lord and ask for help to overcome the problem. And also look at what the Word of God says about bad language, He does not like it.
Colossians 3:8 "But now you must rid yourselves of all such things as
these : anger, rage, malice, slander and filthy language from your lips."
God Bless You
:shade: Calluna