Detect String Between Python Function Example Code Of Java