Product search in dashboard doesn't strip whitespaces

The product search form at /dashboard/catalogue/ won't strip whitespaces and will fail to find a product if title or UPC has a space at start or at the end.