keeps original indentation when replacing value