Add string utils functions to base.

R=fdoray@chromium.org, fdoray

BUG=

Review URL: https://codereview.appspot.com/54000044