What is the version of the following sentence with correct punctuation?

So when Im tempted to compare myself to others I know what I need to do I pray to God that He will strengthen me Thank you God that you have made me just as I am
So when I'm tempted to compare myself to others, I know what I need to do. I pray to God that He will strengthen me. "Thank you God that you have made me just as I am.