Don't use strlen inside of loop

This could hurt performance quite a bit.

BUG=296
TEST=

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

git-svn-id: https://angleproject.googlecode.com/svn/trunk@993 736b8ea6-26fd-11df-bfd4-992fa37f6226
3 files changed