Fixed code that gives notice for strings whose stringLength is not
accurate power of $s in encrypt function.