It is fixed that the CutStringFunction isn't boundary check lead to StringIndexOutOfBoundsException.