Surely the [uncompromisingly] righteous shall give thanks to Your name; the upright shall dwell in Your presence (before Your very face).
Surely the righteous shall give thanks unto thy name: The upright shall dwell in thy presence.
Yes, the righteous will give thanks to your name, and those who do right will live in your presence.