simplify slightly

`string[i] == string[i+1]` is equivalent to `string[i-0] == string[i+1-0]`
Merge pull request #2 from hrldcpr/master

simplify slightly