checking for empty integer strings and removing apostrophes from slugify