Check valid ID string in idToFilter