remove tailing space to avoid presentation error