Simplified things by simply comparing sorted, all-lowercase strings.