Hi,i have problem with my cursor moving in terminal,when i type a command that has more than one word,when i want to go to end or first of line,cursor goes to some character ahead,my ubuntu is updated 18.04 version,i attached pictures for better understanding.
any help?

After pressing end key.jpgafter pressing home or ctrl+a.jpg