Well, let me help you clarify what it means to be a child of God. I think it'll assist you in understanding how to surrender to your Maker.
Who is God? He is the Apex, the Center, the Foundation of all that is. It is in Him we all "live, and move, and have our being." If God does not exist, nothing exists. God is the Ultimate Superior. You can go no higher than God; all else is under Him. That includes you and me - and the entire universe. It is this God that comes to you offering fellowship. Can you have fellowship with such a Being as an equal? Obviously not. We all come to God as an inferior to a Superior. And we are far, far, far, far inferior to Him. Multiply the difference between a molecule in your body and the Sun several trillion times and you just begin to see the massive, staggering difference between yourself and your Maker.
Too often, though, Christians treat God as an equal or near-equal. They tend to diminish God's superiority, His staggering awesomeness, and try to fellowship with Him as though He is their bosom buddy. When that happens, they stop depending on God as they should and they cease to think of Him as someone to whom they ought to surrender or submit. Under the guise of "honesty" they treat God casually - even disrespectfully - and lose sight of their utter and profound need of Him. When this is so, fellowship with God cannot go on.
We must all, then, come to God on our knees in total surrender and dependence upon Him and we "walk" with Him in exactly the same way. What does this mean? It means you aren't the boss any more. What you do with your time, and energy, and money is no longer something you decide for yourself. When you are in the bookstore looking for a good novel to read, you are always asking yourself if the book you'd like to read is honoring to your Heavenly Father. When you turn on the t.v., you look to yield to God's holy standard in what you watch. When you interact with the people around you, you are surrendered to the will of God in what you say, and the attitudes you adopt. When you are alone with your thoughts, you "take every thought captive" bringing each one into submission to the truth, and purity, and commands of God.
So, when a thought erupts in your mind that makes you feel a compulsion to swear, respond first of all with a conscious yielding to God: "Heavenly Father, in this moment, in regard to this thought, I surrender to your will and way. I want to obey you in how I respond to this thought. Thank you that you will, by your Spirit, make me more like Jesus." Then, subject the thought to God's truth. What does God's word say about this thought? Do you have to obey this compulsive thought? No. As a child of God you are "dead to sin and alive unto God." (Ro. 6:11) God has given to you in the Person of His Spirit "power, love and a sound mind" (2 Ti. 1:7) Your life is "hid with Christ in God" (Col. 3:3). Stand on this truth about who you are. Refuse to be moved from it. No matter what you think or feel, anchor what you think about yourself to what God says about you. You are dead to sin; you have a spirit of power and a sound mind; you are indwelt by the Spirit of the Almighty God of the universe; you never have to be under the power of any evil thought or desire. Surrender to His truth about you and depend upon it. As you do, you will over time come into the experience of what God says about you. This may not happen quickly. God wants to establish new spiritual reflexes and habits of thought in you and that takes time. Your old way of thinking and being needs to be rooted out and replaced. Be patient - and persistent.
1 Peter 5:10
10 But may the God of all grace, who called us to His eternal glory by Christ Jesus, after you have suffered a while, perfect, establish, strengthen, and settle you.
James 1:12
12 Blessed is the man who endures temptation; for when he has been approved, he will receive the crown of life which the Lord has promised to those who love Him.
Selah.