More clean code for leetcode Implement-strStr