Remove some type casts/coercions to str type.

This way, we try to make the code slightly more readable (which is the most
costly part of all this).