replace doc["text"] to space