Better truncating of equation string

- it is now fully dynamic based on the width of the display and
characters in the string (issue #33)