Fix for #8777 (continuing PR #9061)

Now filter name is trimmed and lowercased before evaluation for case
insensitive and whitespace trimemd check.

Signed-off-by: Oh Jinkyun <tintypemolly@gmail.com>
Thanks for changing!

I know the maintainers like `%q`, that's why I mentioned it. Thanks for the link