Fix caret beginning match problem
Fix caret beginning match problem