chomp

inline fun String.chomp(
    separator: String,
    onMissingDelimiter: () -> Pair<String, String>
): Pair<String, String>

Splits the given string into two parts before and after separator.

Useful together with destructuring declarations