[bash] Trying to retrieve first 5 characters from string in bash error?