Ah, get an answer from http://stackoverflow.com/questions/3976935/best-way-to-return-an-stdstring-that-local-to-a-function, return "" should be better to allow compiler to do optimization to reduce one copy constructor.