Fix the coverity issues

This PR is to resolve issues raised by coverity.

BUG=XWALK-2928
would it help, if "string" had been initialized with "" from the beginning?