reorder string appending