fixed bug in string triming in Command