Does this kind of string slicing comparison work? jfiles / json

in which case there may have been a duplicate name warning - best never to ignore warnings. I read recently (I think on the skype groups) that someone had “thousands of warnings”!