final Type startType = parameters.getType(1);
final Object startValue = parameters.getValue(1);
final Type lengthType = parameters.getType(2);
final Object lengthValue = parameters.getValue(2);
final String newText = typeRegistry.convertToText(newTextType, newTextValue);
final String text = typeRegistry.convertToText(textType, textValue);
final Number start = typeRegistry.convertToNumber(startType, startValue);
if (start.intValue() <= 0)
{
throw EvaluationException.getInstance(LibFormulaErrorValue.ERROR_INVALID_ARGUMENT_VALUE);