updating mergesort with new string