Make sure shard key is a string