Error reading HTC-file - name with leading space

I have a HAWC2 model which has leading spaces for some of the variable names which leads to an issue for the naming in the HTCFile object. Below I have attached a example that fails where I have changed begin wind to begin wind which causes the name in the HTC object to be " wind" and not "wind" as it should be.

DTU_10MW_RWT_mod.htc

01_modify_htcfile_mod.py