Make metadata title matching more permissive

From the ticket: Not sure why it was comparing the first char of both
strings, also think it shouldn't be case sensitive at all.

I think so, too

Fixes #11088
Patch by Daniel Ribeiro
fix indention after last commit