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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.