Make sure document ID is always a string