hide trailing space, there would be no more red blinking cursor any more