Modified string char iteration to be GCC 4.4 compatible.