adding fallback to put if key is String