replace string with StringPiece to save memory.