Convert input prog to char array