I need some help understanding this

The # symbol for length is only used with arrays, so when finding the length of a string, you need to use string.len().