Restructure text