3-way quick sort strings