added newline and carriagereturn to strtok in handle_cmd_reset