Bash String Functions Substring Method Javascript Formatter