shell script function return string