Java String Method To Find Substring In Powershell For Linux