Force lowercase before matching diagnostics logs

As per review feedback - PR #1117