Periods have no case.

Swapped in StringComparison.Ordinal for the literal comparison against . since those are non-caseable. This is a micro-improvement, but still good practice.