Convert spaces to indentations