Java Regex Find Substring In String Leetcode