fix a couple of caret position error, also when input string length > pattern functoin length, we consider the matching failed
Release 0.0.2