Refactor strStr