added functionality to determine if minimum length of string is met