Tidy up the string utilities.

Change-Id: Ifd19a737b4a6a3e333aac64909a4694f7169786e
Reviewed-on: https://code-review.googlesource.com/6832
Reviewed-by: Paul Wankadia <junyer@google.com>
24 files changed