Better error handling for bad label names.
Refactoring to remove register assocation with strings.