String manipulation utility for the shell