correcly checking if remote ids are strings