Enforce string type for key