replace space to indentation