Classification of the string solutions of Bethe equations in an XXZ model of arbitrary spin