finsh-ex: fix inserting char in the middle

When move the string backward, we should use memmove because the buffers
of strcpy may not overlap.