Trim tags when searching. Fixes #1