Added snippet for finding the length of a string