Function checkStringAtMostChars

Results in "validity" for strings that are at most the specified number of characters long, using .length