I don't think it's shameful to be poor.

Literal

Poor thing [topic-は] shameful thing [copula-ではない] [quotative-と] think [polite-ます].

こと nominalizes both 'being poor' and 'being shameful,' making them noun phrases. ~ではないと思います politely states the speaker's negative opinion. The omission of 私は makes it slightly more universal-sounding.