move the end fi out of the shell string