Bash String Functions Substring In Python Geeksforgeeks