arranging text strings