fix #11 (performance improvement) and #13 (ignore long identifiers, e.g., from base64 encoded strings)