fix helper generator, it does not remove leading space