fix the case of empty string key
no need to special case win here