Bash Substring Compare