Function checkStringLength

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