Respect replaceOnce option + Fixed tab spacing