key should be string.