Transforms with minimum operation one string to other.