helper functions for converting between ids and strings