Reorganize strings (first part)