use len to get string's length