cmd input should be str