Isn't it a problem, to use so many temporary strings?

Or to return 0 for return type string?