Simplify hexStringTransformFromThreeCharacters.