track_values function

Track unique character values for variables.