finished str2hex