making sure ids are converted to strings before comparing