Add toString() to source code elements