Mergesort modified for strings