update: Simplify notes filtering

* Added a `Matches` function which determines whether a note does or
  doesn't match a given string. Note that the case-insensitive flag has
  been turned on to facilitate the UX.

Signed-off-by: mr.Shu <mr@shu.io>