be explict about typecasting to string when necessary
bring a small computation out of a loop
Merge pull request #100 from dimagi/explicit-typecasting

Explicit typecasting