Bash Get Substring From User Input