Instead of using the position, you can map each letter to a custom value using an array or a map. Maybe you're working on something like a destiny number system?