This can avoid some errors caused by an additional space at the end of the command line. For example: 'use db ' will be trimed to 'use db' and parsed correctly. Signed-off-by: Kai Zhang <zhangk1985@gmail.com>