Fixed Formatting

Ensure all comparisons are normalised in lower case, irrespective of
the origin.