this is some cursed shit, but it does work. I use it to check whether all my ROMs have valid names or not. Makes it easier to read and, more importantly, deduplicate.