Trim whitespace from search input text
Fix popup notification auto-close after timeout
- Chrome reported errors "Uncaught TypeError: Illegal invocation" and popup was left on screen
- Firefox showed a similar error, but auto-closed the notification itself