So you want to break the words and reorder, you can use LINQ:
var words = temp1.Split(' '); String newWord = string.Join(" ", words.Reverse());
or if you do not want to change all the words, but replace only the first and last word:
String first = words.Last(); String last = words.First(); String newWord = first + " " + string.Join(" ", words.Skip(1).Take(words.Length - 2)) + " " + last;
source share