When a long string has to be displayed in a diagram or other image, the diagram itself will become quite small (if not to say: useless).
I would like to suggest that strings are abbreviated after a certain amount of letters. The full string can already be seen when hovering the mouse above it.