Changed the getNames method to produce better handling of all upper case
and mixed case names.