The string.len() function returns string lengths. It typechecks the argument to make sure it's a string, but otherwise returns the same value as #.