implementing minimun length for strings