Add length check of the string