command line trim bug fix