Add method to truncate text to prevent form fields from wrapping outside bounding box. Fixes #1.