Case-insensitive template matches