clampLength

fun clampLength(value: String?, max: Int): String?

value cut to max characters (null stays null).