Fair enough, I'll update to foreach. Been in Python land a while :)

Substr just truncates the length of the string. I'd prefer we not truncate it at the getEntitiesForPage level so that we can reuse the values in the future.