Fixing strip error in the ddl command
Fixing logic flaw where incorrect else block