for arrays: add double space handling, underscore compact before save and housecleaning