fixing inserting a space some places in the output result from pentra