getCmd better than getString

Thanks Thomas for his comment