Use string::compare to improve performance.
Merge pull request #24 from masamitsu-murase/use_compare

Use string::compare to improve performance.