adding in-line comment explaining the str() cast