Bash String Functions Substring Javascript Function How To Use