Cannot edit file names. I have a long file name and would like to rename the file by changing the last few characters.

I have a long file name and would like to rename the file by changing the last few characters but the cursor moves to the beginning causing me to have to retype the entire file name.