This is starting to be a faq...
Finding out the length of a string held within a variable wc -c length of the string