Split string wrapping out into its own shell function. (dm)