Bug 1031647 - Change string API usage. r=ehsan