make string formatting accept strings for ids