UID and toString refactor.