Refacotr mrb_str_substr()
Refactor mrb_str_hash()
Merge pull request #2194 from suzukaze/refactor-string.c2

Refactor string.c