################################################################################
# Function: trim
# Description: Trims any/all whitespace from the beginning and end of a string
# Arguments: $1 :- The string from which to trim whitespace
# Outputs: Prints string with any leading/trailing whitespace removed
################################################################################
# Function: create_temp_dir
# Description: Creates a temporary directory
# Arguments: $1 :- temporary directory name prefix (required)
# Outputs: Prints name of the created temporary directory
################################################################################
# Function: echo_if_verbose
# Description: Prints $@ if IS_VERBOSE is not empty
# Arguments: $@ :- Content to echo if ${IS_VERBOSE} is not empty
# Requires: ${IS_VERBOSE} set to a non-empty string if verbose is on
################################################################################
# Function: usage_exit
# Description: Prints the usage message for this script and then exits
# Arguments: $1 :- Exit code; defaults to 1
# Outputs: Prints description of how to call this script
################################################################################
# Function: chomp_slash
# Description: Removes any trailing slash ("/") from a string
# Arguments: $1 :- String from which to remove any trailing slashes
# Ouputs: Prints string with trailing slashes removed
################################################################################
# Function: create_temp_file
# Description: Creates a temporary file
# Arguments: $1 :- temporary directory name (required)
# Outputs: Prints name of the created temporary directory