getID functions gets IDs with prefix or names