Check this string max length, if satisfied condition then return true
static bool maxLen(String string, int max) => string.length <= max;