Fix for #8777

Now filter name is trimmed and lowercased before evaluation for case
insensitive and whitespace trimemd check.

Signed-off-by: Oh Jinkyun <tintypemolly@gmail.com>
Merge pull request #9188 from somaopensource/8777-fix

Fix for #8777 (continuing PR #9061)