Bash String Functions Substring Method