Fix for #8777 (continuing PR #9061)

Now filter name is trimmed and lowercased before evaluation for case
insensitive and whitespace trimemd check.

Fixes #8777

Signed-off-by: Oh Jinkyun <tintypemolly@gmail.com>