Actually there's a better function that will solve part of the problem. But to simplify, use corresponding ASCII ranges and a map of strings to reduce everything in size.
Still follows the original motif though....
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.