Fix issue with extra spaces being inserted when hitting jj