change cmd_string to correct format()