Strip trailing spaces from tmux history