Add length check at CGitHash(CString $str)