A micro optimization of h()

In most cases, the first argument of h() will be a string.

benchmark test:
https://gist.github.com/chinpei215/d129fcc67055f8f7b52b