Speed up str_len

Do less incrementing in the loop, turn that into post-loop arithmetic.