Bash Script Get Input In String Function