} else {
cmp = seq2.getStringValue();
}
if(cmp.length() == 0)
{result = new StringValue(value);}
else {
final Collator collator = getCollator(contextSequence, contextItem, 3);
final int p = Collations.indexOf(collator, value, cmp);
if (p == Constants.STRING_NOT_FOUND)
{result = StringValue.EMPTY_STRING;}
else
{result = new StringValue(p + cmp.length() < value.length() ?
value.substring(p + cmp.length()) : ""
);}
}
if (context.getProfiler().isEnabled())