handle index = -1 in choosing template. Change placeholder project name from MyXXXProject to project_name
fix conflict with spaces/tabs.