Use Ace search to trim lines. Fixes #205 (for real this time).