trimIndent
Detects a common minimal indent of all the input lines, removes it from every line and also removes the first and the last lines if they are blank (notice difference blank vs empty).
fun String.trimIndent(): String(source)
fun main() {
val text = """
| Hello, Kotlin!
| Trim indentation.
""".trimIndent()
println(text)
}