New util method to handle id strings