Minor fix on InputToCommand