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