Self-confidence may be mistaken for egotism if it is not accompanied by humility of the heart.
or simply: