substitute idstr to id.tostring