Getting the length of a string using len