SortLib: Variable search - QString::replace calls remooved from the cycle