return when elements elementAtOrElse update elements trim toLowerCase

1
2
3
4
5
6
7
return when (elements.elementAtOrElse(0) {""}) {
"update" -> elements[1].trim().toLowerCase()
"insert" -> elements[2].trim().toLowerCase()
"delete" -> elements[2].trim().toLowerCase()
else -> ""
}
}