Trim the commands