clean up register_watchers string functions