Shell Script String Manipulation Functions