common-cli: add leading and trailing whitespaces trim in command input