Thank you very much.
And by the way,for loop goes like this: for(int i=0; i<Length/2 ;i++),because if you keep for loop swapping characters for full length,you will get the same thing you started with,original full name.
Problem solved,thank you very much.