Python Interface: Material Title

Hello sfr,
thanks for your answer. Unfortunately it is not working as expected for me.
Below is my code to get the Material Name with that string buffer.

grafik^

The output is not showing the correct Titles. For some Material numbers there are no characters at all.

Although i can see the correct material title in the database info.
grafik

What am I missing?