Slightly tweak the calculation
Seems to work for upper and lowercase.
Got to work now to process a string