A collection of some utility functions for bash array/string manipulation