Indicate with ellipsis that text is too long
Use a little bit more straight-forward detection
Fix a 100% CPU usage bug