Function valid_identifier

Verifies tracker identifier

Tests if a given input string is a valid tracker identifier. A valid identifier contains only upper and lower case letters, digits and underscore.

A conditionally valid identifier also contains dash. This is used for legacy reasons but is discouraged for new trackers.