Fix warning for adding integer to string.

Clang warns on this construct and suggests using array indexing
to silence the warning.