Bash Check If String Ends With Character