You can use the following formula for names without any middle name:

=MID(A1,SEARCH(" ",A1,1)+1,1)&" "&LEFT(A1,SEARCH(" ",A1,1)-1)