Builds unique ids that may be lower case or not