I have a string in Bash which may or may not start with any number of leading spaces, e.g.
" foo bar baz" " foo bar baz" "foo bar ba