private void SetString(string input, int testPosition)
{
foreach (char ch in input)
{
// If character is not to be escaped, we need to find the first edit position to test it in.
if (!TestEscapeChar(ch, testPosition))
{
testPosition = FindEditPositionFrom(testPosition, forward);
}
SetChar(ch, testPosition);
testPosition++;
}
}