modify cipher to str judge