Detects a common minimal indent like it does trimIndent and replaces it with the specified newIndent.