Can I be thankful for my problems?

There is a saying that we should be thankful for our problems because if they were less difficult then someone with less ability might have our job. The Bible says we will not be tempted above what we can stand but that the Lord will make a way to escape. So then if the Lord allows a temptation in my life He must have confidence that I am strong enough to stand but weak enough to depend on Him.